<?php
if (eregi("menu.php",$_SERVER['SCRIPT_NAME'])) {
    Header("Location: ../index.php");
    die();
}


function adminMenu()
{
global $lang,$admin;
$str = "
	"._MANAGE.": <img src='language/".$admin->language.".gif' width='14' height='11' border='0'>
	&nbsp;&nbsp;&nbsp;
	"._SELECT.": ";
foreach ($lang->available as $language) {
    if ($language != $admin->language)
    {
        $str.= "
	    <a href='".GLOBAL_SELF."?lang=$language'><img src='language/".$language.".gif' width='14' height='11' border='0'></a>
        "; 
    }
}
$str.= "<br>
    <img src='admin/images/arrow.gif' width='5' height='10' border='0'>
	    <a href='?op=d' class='adminmenu'><b>"._FILEMANAGER."</b></a>
	&nbsp;&nbsp;&nbsp;
	<img src='admin/images/arrow.gif' width='5' height='10' border='0'>
        <a href='?op=p' class='adminmenu'><b>"._CREATEEDITPAGE."</b></a>
	&nbsp;&nbsp;&nbsp;
	<img src='admin/images/arrow.gif' width='5' height='10' border='0'>
        <a href='".GLOBAL_SELF."?op=logout' class='adminmenu'><b>"._LOGOUT."</b></a>
";

return $str;
}
?>
